using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 添加阳光效果数据
/// </summary>
[CreateAssetMenu(menuName = "创建ScriptableObject/Effect/AddSunEffectData")]
public class AddSunEffectData : InstantEffectData
{
    public int SunValue;

    public override void Execute(Entity caster, Entity target, params object[] args)
    {
        // 添加阳光
        var eventArgs = ReferencePool.Acquire<SunCollectedEventArgs>();
        eventArgs.Sun = null;
        eventArgs.SunValue = SunValue;
        EventHelper.Fire(this, eventArgs);
    }
}
